package net.lab1024.sa.user.module.business.course.domain.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.lab1024.sa.common.common.enumeration.GenderEnum;
import net.lab1024.sa.common.common.swagger.ApiModelPropertyEnum;
import net.lab1024.sa.common.common.validator.enumeration.CheckEnum;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 学员 新建表单
 *
 * @Author jabari
 * @Date 2023-08-05 17:22:36
 * @Copyright 51dev.cn
 */

@Data
public class StudentAddForm {

    @ApiModelProperty(value = "学员姓名", required = true)
    @NotBlank(message = "学员姓名 不能为空")
    private String name;

    @ApiModelPropertyEnum(GenderEnum.class)
    @CheckEnum(value = GenderEnum.class, message = "性别错误")
    private Integer gender;

    @ApiModelProperty(value = "生日", required = true)
    @NotNull(message = "生日 不能为空")
    private LocalDate birthday;

    @ApiModelProperty(value = "学员ID")
    private String otherNumber;



}